package com.zbkj.crmeb.store.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单退款申请记录表
 * </p>
 *
 * @author wuzp
 * @since 2022-07-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("eb_store_order_refund_apply")
@ApiModel(value="StoreOrderRefundApply对象", description="订单退款申请记录表")
public class StoreOrderRefundApply extends Model<StoreOrderRefundApply> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "子订单id")
    private Integer infoId;

    @ApiModelProperty(value = "原订单状态")
    private Integer oldStatus;

    @ApiModelProperty(value = "申请退款时间")
    private Date refundReasonTime;

    @ApiModelProperty(value = "退款类型(1未收货仅退款  2收到货退货退款)")
    private Integer refundType;

    @ApiModelProperty(value = "退款原因")
    private String refundReasonWap;

    @ApiModelProperty(value = "备注说明")
    private String refundReasonWapExplain;

    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundPrice;

    @ApiModelProperty(value = "退款凭证")
    private String refundReasonWapImg;

    @ApiModelProperty(value = "处理类型（1同意  2拒绝）")
    private Integer processType;

    @ApiModelProperty(value = "平台处理时间")
    private Date processTime;

    @ApiModelProperty(value = "拒绝理由")
    private String refundRefuseReason;

    @ApiModelProperty(value = "退货收货人")
    private String returnConsignee;

    @ApiModelProperty(value = "退货收货手机号")
    private String returnPhone;

    @ApiModelProperty(value = "退货详细地址")
    private String returnAddress;

    @ApiModelProperty(value = "物流id")
    private Integer deliveryId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
